<!DOCTYPE html>
<html lang="cn">


<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>js1</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <h1>svn版本控制</h1>
    <div id="aa">hello world!</div>
    <button onclick="Test()">点击</button>
    <button id="btn1">点击1</button>
    <button id="btn2">点击2</button>

</body>

</html>

<script src="myjs.js"></script>
<script>
    btn1 = document.getElementById("btn1");
    btn1.onclick = Test;

    btn2 = document.getElementById("btn2");
    btn2.addEventListener("click", Test);


    aa = document.getElementById("aa");
    alert("aaaaaaaaaa" + aa);

    function Test() {
        alert("ccc");
    }

    function Test1() {
        alert("ddd");
    }

    Test1();
</script>